gtk-demo: Add .sidebar style class in the main window
authornana-4 <hnmaigo@gmail.com>
Sun, 22 Nov 2020 04:51:15 +0000 (13:51 +0900)
committerJakub Steiner <jimmac@gmail.com>
Mon, 23 Nov 2020 09:51:58 +0000 (10:51 +0100)
So the sidebar can get the proper background and border colors.

demos/gtk-demo/main.ui

index 58f8d823d7237eb36a820d0e39e1adfb5c214f57..484cc63b05d11e7b790fbf50c8713915d533fc2c 100644 (file)
@@ -47,6 +47,9 @@
       <object class="GtkBox">
         <child>
           <object class="GtkScrolledWindow">
+            <style>
+              <class name="sidebar"/>
+            </style>
             <property name="width-request">120</property>
             <property name="hscrollbar-policy">never</property>
             <property name="min-content-width">150</property>
@@ -89,9 +92,6 @@
             </child>
           </object>
         </child>
-        <child>
-          <object class="GtkSeparator"/>
-        </child>
         <child>
           <object class="GtkNotebook" id="notebook">
             <property name="scrollable">1</property>